package com.qdlc.p2p.biz.service;


import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dto.EnjoyBorrow;
import com.qdlc.p2p.dal.dto.EnjoyGoods;
import com.qdlc.p2p.dal.model.EnjoyBorrowModel;

/**
 * Created by D on 2016/1/20.
 */
public interface EnjoyBorrowService {

    /**
     * 保存
     */
    void save(EnjoyBorrow enjoyBorrow);

    /**
     * 更新
     */
    void update(EnjoyBorrow enjoyBorrow);

    /**
     * 通过borrowId获取EnjoyBorrow
     */
    EnjoyBorrow findByBorrowId(long id);

    /**
     * 通过专区Id获取所有的EnjoyBorrowModel
     */
    PageDataList<EnjoyBorrowModel> getList(int prefecture, int page);

}
